package hk.dao;

import hk.jdbc.DBUtil;
import hk.pojo.UserInfo;

/**
 * @version 1.0
 * @Author YangJiaQuan_hrbnu
 * @Date 2024/4/24 16:27
 */
public class UserDao {

    public UserInfo login(UserInfo userInfo){
        return DBUtil.getSingleObj("select * from userinfo where userName = ? and password = ? ",UserInfo.class,userInfo.getUserName(),userInfo.getPassword());
    }

}
